package cn.tedu.spring.example;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import java.applet.AppletContext;

public class TestUser {

    public static void main(String[] args) {

        //复制路径快捷键 ctrl+shift+Alt +c
        //              Fn+ctrl+shift+Alt +c
        //粘贴   ctrl + v
        ApplicationContext context =new AnnotationConfigApplicationContext
                ("cn.tedu.spring.example");
        // context.getBean("user").var+ 回车
        User user = context.getBean(User.class);
        user.run();



    }
}
